package com.hua.api.core.activemq.consumer.event.impl;

import com.alibaba.fastjson.JSONObject;
import com.hua.api.core.activemq.consumer.event.ActiveMqEvent;
import com.hua.api.core.activemq.consumer.event.EventConstant;
import com.hua.api.modules.message.service.UserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

// 订单确认
@Component(EventConstant.event_user_message)
public class UserMessageEvent implements ActiveMqEvent {

    @Autowired
    private UserMessageService userMessageService;

    @Override
    public void doEvent(JSONObject data) {
        userMessageService.onUserMessage(data);
    }

}
